{% load questions_extra %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=windows-1250">
  <meta name"Driving Theory Test" content="Samle Irish Driving Theory Test">
  <meta name="keywords" content="Driving test, Driver theory test, Irish Driver Theory Test, provisional licence, Irish test, irish school of motoring">
  <title>Driving Theory Test: Results</title>
  <link href="/site_media/css/styles.css" rel="stylesheet" type="text/css" />
  <script type="text/JavaScript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
  
  <script src="/site_media/js/jquery.js" type="text/javascript"></script>
  <script src="/site_media/js/ui.core.js" type="text/javascript"></script>
  <script src="/site_media/js/jquery.bind.js" type="text/javascript"></script>
  <script src="/site_media/js/ui.checkbox.js" type="text/javascript"></script>
  <script src="/site_media/js/jqBarGraph.js" type="text/javascript"></script>
  
  

 <script type="text/javascript">
        $(document).ready(function() {

            $(".signin").click(function(e) {
                e.preventDefault();
                $("fieldset#signin_menu").toggle();
                $(".signin").toggleClass("menu-open");
            });

            $("fieldset#signin_menu").mouseup(function() {
                return false
            });
            $(document).mouseup(function(e) {
                if($(e.target).parent("a.signin").length==0) {
                    $(".signin").removeClass("menu-open");
                    $("fieldset#signin_menu").hide();
                }
            });            

        });
</script>
        
<script type="text/javascript">
            $(function(){
				
            	$('input').checkBox();
				
				$('#toggle-all').click(function(){
					$('#example input[type=checkbox]').checkBox('toggle');
					return false;
				});
				
				$('#check-all').click(function(){
					$('#example input[type=checkbox]').checkBox('changeCheckStatus', true);
					return false;
				});
				$('#uncheck-all').click(function(){
					$('#example input[type=checkbox]').checkBox('changeCheckStatus', false);
					return false;
				});
				$('#check-2').click(function(){
					$('#example input[type=radio]:eq(1)').checkBox('changeCheckStatus', true);
					return false;
				});
				$('#native').click(function(){
					//native methods
					$('#example input[type=radio]:eq(0)').attr({checked: true, disabled: true})
						//reflect the current state
						.checkBox('reflectUI');
					return false;
				 });
			});
            
</script>

</head>
  
<body>

<div id="wrapper">
    <div id="header">
	</div>


	<div id="features"> 
          
     		<div id="graph"> 
     			<div id="simpleGraph"></div>
   			</div>
			<div class="result">
				<div class="your_score">You got: {{score}}%</div>
				<div class="average_score"> The average score people get on the test is {{ overall_average_score }}% so use this to compare yourself!</div>
				{% if request.user.is_authenticated %}
				<div>Your average score from all the tests you've done here is: {{average_score}}%</div>
				{% endif %}

				{% if incorrect_list %}
				<p>You got {{ incorrect_list|length }} question{{ incorrect_list|pluralize }} incorrect.</p>
				<hr>

			{% for incorrect_answer in incorrect_list %}
				<div>{{ incorrect_answer.title }}</div>
				You said:<br>
				<div class="incorrect">
				<ul>
				{% for each_answer in incorrect_answer.provided_answer %}
					<li class="{{each_answer|is_answer_correct}}"> {{each_answer.answer}} </li>
				{% endfor %}
				</ul>
				</div>
				The correct answer is:<br>
				<div class="correct">
				<ul>
				{% for each_answer in incorrect_answer.correct_answer  %}
					<li>{{each_answer}}</li>
				{% endfor %}
				</ul>
				</div>
				
			{% endfor %}

	{% else %}
	<p>Well done, all right! Christ you're ready for road boy.</p>
	{% endif %}
	
	
	<div class="result_button">              
	  <ul >
                <li class="start"> <a href="/start_test/"></a>   </li>
               <li class="easiest"> <a href="/easiest_test/"></a> </li>
               <li class="hardest"> <a href="/hardest_test/"></a> </li>
		{% if request.user.is_authenticated %}
			 <li class="user_hardest"> <a href="/user_hardest_test/"></a>  </li>
		{% endif %}
		</ul>
	</div>

	</div>


		
	<div style="clear:both"></div>

    <div class="ft-bottom"></div>

</div>



</div>
{% include "google_tracker.html" %}
</body>
</html>



